package com.glodon.paas.account.dao;

import java.util.List;

import com.glodon.paas.account.dao.domain.UserEntity;

public interface UserDao  extends DBDao<UserEntity, String> {	
	
	//UserEntity getByEmail(String email, Integer status);	
	
	void update(UserEntity user);	
	
	//void updatePassword(UserEntity user);	
	//boolean checkValidEmail(String email);

	UserEntity getByAccountName(
			String userId,  
			String email,
			String mobile, 
			Integer status
			);

	/**
	 * @param userIds
	 * @return
	 */
	List<UserEntity> getByIds(String[] userIds);

    void addProjectRole(String id,String userId, String projectId, String roleId,String orgId);
    
    int deleteProjectRole(String userId, String projectId, String roleId,String orgId);
    int updateProjectRole(String projectId, String oldeRoleId,String newRoleId);
}

